<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
     <link href="cssjs/bootstrap.min.css"  rel="stylesheet" type="text/css"/>
</head>
   
<body>
    <div class="widget-content">
    <div style="width: 20%; margin: auto; min-width: 300px;">
        <div class="loginInter">
            <div class="input-group" style="height: 20px; margin-top: 50px">
                <span class="input-group-addon">删除浏览记录</span>
            </div>
            <div class="input-group" style="margin:10px">
                <span class="input-group-addon">网站名</span>
                <input type="text" class="form-control" name="soft" />
            </div>
            <div class="input-group"  style="margin:10px">
                <span class="input-group-addon">密&nbsp;&nbsp;&nbsp;码</span>
                <input type="password" class="form-control" name="password" />
            </div>
            <div class="input-group"  style="margin:10px">
                <span class="input-group-addon">I&nbsp;&nbsp;&nbsp;P</span>
             <input type="text" class="form-control" name="ip" />
            </div>
              <div class="row text-center" >
              	<button type="button" id="submitBtn"  class="btn btn-primary">确定</button>
             
            </div>

        </div>
    </div>
</div>
		<script src="http://apps.bdimg.com/libs/jquery/1.11.1/jquery.min.js"></script>
		<script src="http://apps.bdimg.com/libs/layer/2.1/layer.js"></script>
<script type="text/javascript">
$("#submitBtn").click(function () {
if( $("[name=soft]").val() == "" ){
 		layer.msg('网站名不能为空', {icon:0});
 		return;
 	}
if( $("[name=password]").val() == "" ){
 		layer.msg('密码不能为空', {icon:0});
 		return;
 	}
$.ajax({
	type:"POST",
	url:"http://www.haol.site/link/record/del",
	dataType: "json",
	data: {
         soft: function () {
              return $("[name=soft]").val();
          },
          password: function () {
               return $("[name=password]").val();
          },
          ip: function () {
               return $("[name=ip]").val();
          },
       },
		success: function (reply) {
			if(reply.code == 0){
				layer.msg(reply.msg, {icon:1});
			}else{
				layer.msg(reply.msg, {icon:0});
			}
		}
	})


});
</script>
</body>
</html>
